<template>

    <el-container style="height: 740px; border: 1px solid #eee">
  <el-aside width="200px" style="background-color: rgb(238, 241, 246)">
      <img src="../assets/img/logo.png" width="190" height="69.8">
    <el-menu :default-openeds="['1', '3']" :router="true">
      <el-submenu index="1">
        <template slot="title"><i class="el-icon-message"></i>总览</template>

          <el-menu-item index="./pandect">总览</el-menu-item>
          <el-menu-item index="./real_time">实时监控</el-menu-item>

      </el-submenu>
      <el-submenu index="2">
        <template slot="title"><i class="el-icon-menu"></i>运单</template>

          <el-menu-item index="./yunmes">运单信息</el-menu-item>
          <el-menu-item index="./showgoods">运单列表</el-menu-item>
          <el-menu-item index="./addgoods">添加运单</el-menu-item>
          <el-menu-item index="./showclient">客户信息</el-menu-item>

          <el-menu-item index="./addclient">添加客户</el-menu-item>

      </el-submenu>
      <el-submenu index="3">
        <template slot="title"><i class="el-icon-setting"></i>设备</template>
     
          <el-menu-item index="./showtag">标签信息</el-menu-item>
          <el-menu-item index="./addtag">添加标签</el-menu-item>
       

          <el-menu-item index="3-3">网关信息</el-menu-item>


          <el-menu-item index="3-4-1">添加网关</el-menu-item>
            <el-menu-item index="./show_genre">货物类型</el-menu-item>
            <el-menu-item index="./cargo">添加货物类型</el-menu-item>
            <el-menu-item index="3-6">查验校准报告</el-menu-item>
      </el-submenu>

       <el-submenu index="4">
        <template slot="title"><i class="el-icon-setting"></i>用户</template>

          <el-menu-item index="show_user">用户信息</el-menu-item>
          <el-menu-item index="4-2">添加用户</el-menu-item>

          <el-menu-item index="4-3">公司信息</el-menu-item>


          <el-menu-item index="4-4-1">操作记录</el-menu-item>

      </el-submenu>

       <el-submenu index="5">
        <template slot="title"><i class="el-icon-setting"></i>曲线分析</template>

          <el-menu-item index="5-1">多重曲线图</el-menu-item>
          <el-menu-item index="5-2">物流无线分析</el-menu-item>


      </el-submenu>
    </el-menu>
  </el-aside>

  <el-container>
    <el-header style="text-align: right; font-size: 12px">
      <el-dropdown>
        <i class="el-icon-setting" style="margin-right: 15px"></i>
        <el-dropdown-menu slot="dropdown">
          <el-dropdown-item>查看</el-dropdown-item>
          <el-dropdown-item>新增</el-dropdown-item>
          <el-dropdown-item>删除</el-dropdown-item>
        </el-dropdown-menu>
      </el-dropdown>
      <a href="./login">退出</a>
      <span>欢迎您：{{username}}</span>
    </el-header>

    <el-main class="yang">
      <router-view></router-view>
    </el-main>
  </el-container>
</el-container>
</template>

<style>
  .el-header {
    background-color: #B3C0D1;
    color: #333;
    line-height: 60px;
  }
  .yang{
      background-color: #c1c5be;
  }
  .el-aside {
    color: #333;
  }
</style>

<script>
  export default {
    data() {
      const item = {
        date: '2016-05-02',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      };
      return {
          username:"",
        tableData: Array(20).fill(item)
      }
    },
    mounted(){
        this.username = localStorage.getItem("username")
    },
    methods:{
        
    }
  };
</script>